#pragma once
#include "__threadPool.hpp"
namespace xyl
{
    // START OF CLASS ThreadPool
    template <typename T>
    class ThreadPool
    {
    public:
        ThreadPool(size_t threadNum = DEFAULT_THREAD_NUM)
            : _tp(threadNum)
        {}
        void start() { _tp.__start(); }
        void push_task(const T &task) { _tp.__push_task(task); }
    private:
        __ThreadPool<T> _tp;
    };
    // END OF CLASS ThreadPool
}